package exp8;

public class ExceptionDemo2 {
	public static void main(String[] args) {
		int a[]= {5,0,2};
		for (int i = 0; i < a.length; i++) {
			try {
				int d = 100/a[i];
				System.out.println("正常:d="+d);
			}catch(RuntimeException e){
				System.out.println(e.toString());
			}finally {
				System.out.println("异常处理结束！");
			}
		}
	}
}

